<template>
  <div class="movie">
    <h1>我想看的电影名字必须是4-6的长度</h1>
    <ul>
      <li v-for="movie in myMovieList" :key="movie.tvId">
        {{ movie.albumName }}
      </li>
    </ul>
    <hr />
    <h1>我想看的电影名字必须是我传递的长度</h1>
    <ul>
      <li v-for="movie in yourMovieList" :key="movie.tvId">
        {{ movie.albumName }}
      </li>
    </ul>
    <div>
      
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "Movie",
  mounted() {},
  computed: {
    ...mapGetters("count",["myMovieList"]),

    yourMovieList() {
      return this.$store.getters["count/yourMovieList"]({ start: 2, end: 4 });
    },
  },
};
</script>

<style lang="scss" scoped>
</style>